package model.requirement4;

// 配料装饰器基类
public abstract class PizzaDecorator extends CustomPizza {
    protected CustomPizza pizza;

    public PizzaDecorator(CustomPizza pizza) {
        this.pizza = pizza;
    }

    @Override
    public String getDescription() {
        return pizza.getDescription();
    }

    @Override
    public double getCost() {
        return pizza.getCost();
    }
}
